package com.bjpowernode;

import com.bjpowernode.ba02.SomeService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MyTest02 {
    @Test
    public void test01(){
        String configure= "ba02/applicationContext.xml";
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext(configure);

        SomeService proxy=(SomeService) applicationContext.getBean("service");
        proxy.doOther("刘思帆",20);

    }
}
